Skip to content

Conversation

@jathu
Copy link
Contributor

@jathu jathu commented Jun 2, 2025

Summary

I recently learned about FetchContent. This seems like a nicer solution than using submodules. Thoughts?

Test plan

CI

@jathu jathu added ciflow/trunk ciflow/binaries release notes: none Do not include this in the release notes labels Jun 2, 2025
@pytorch-bot
Copy link

pytorch-bot bot commented Jun 2, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/11285

Note: Links to docs will display an error until the docs builds have been completed.

❌ 22 New Failures, 1 Unrelated Failure

As of commit 0ca8d22 with merge base 09a4b9d (image):

NEW FAILURES - The following jobs have failed:

FLAKY - The following job failed but was likely due to flakiness present on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 2, 2025
@jathu jathu changed the title [WIP] Fetch gflags dynamically [RFC] Fetch gflags dynamically Jun 2, 2025
@jathu jathu force-pushed the jathu/no-gflags branch 3 times, most recently from 5fb5c1b to 1203bce Compare June 3, 2025 21:35
@larryliu0820 larryliu0820 marked this pull request as ready for review June 6, 2025 20:59

FetchContent_gflags()
# Create a symlink from the gflags source directory to third-party/gflags
message(STATUS "gflags source dir: ${gflags_SOURCE_DIR}")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: lets not log, it's too noisy — do we really need to tell them every time?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is very helpful for debugging

@mergennachin
Copy link
Contributor

Why add such as complication? What are we optimizing for? What are the trade-offs?

gflags doesn't seem very large (if you're optimizing for disk space)

@mergennachin
Copy link
Contributor

See some previous context here: #7305

@jathu
Copy link
Contributor Author

jathu commented Jun 11, 2025

Discussed with @larryliu0820 offline and we decided to punt on this until our buck workflow is removed from cmake.

@jathu jathu closed this Jun 11, 2025
@jathu jathu deleted the jathu/no-gflags branch June 11, 2025 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/binaries ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. release notes: none Do not include this in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants